import request from '@/utils/request'

/**
 * 获取员工列表
 * @param {*} params
 * @returns
 */
export function getListAPI(params) {
  return request({
    url: '/worker',
    params
  })
}


/**
 * 添加员工
 * @param {*} data
 * @returns
 */
export function createWorkerListAPI(data) {
  return request({
    url: '/worker',
    method: 'POST',
    data
  })
}







